normalize

gammapy.utils.random.normalize(func, x_min, x_max)[source]

Normalize a 1D function over a given range.